var expressJWT = require("express-jwt");
var jwtAuth = expressJWT({
    secret:"mytoken",
    credentialsRequired:false
}).unless({
    path:['/users/login','users/register']
});
module.exports = jwtAuth;
var jwtAuth2 = expressJWT({
    secret:"myKey",
    credentialsRequired:false
}).unless({
    path:['/users/login']
});
module.exports = jwtAuth2;
